import request from '@/utils/request'

// 查询题目选项列表
export function listQuestionOption(query) {
  return request({
    url: '/eval/questionOption/list',
    method: 'get',
    params: query
  })
}

// 查询题目选项详细
export function getQuestionOption(id) {
  return request({
    url: '/eval/questionOption/' + id,
    method: 'get'
  })
}

// 新增题目选项
export function addQuestionOption(data) {
  return request({
    url: '/eval/questionOption',
    method: 'post',
    data: data
  })
}

// 修改题目选项
export function updateQuestionOption(data) {
  return request({
    url: '/eval/questionOption',
    method: 'put',
    data: data
  })
}

// 删除题目选项
export function delQuestionOption(id) {
  return request({
    url: '/eval/questionOption/' + id,
    method: 'delete'
  })
}
